const mongoose = require('mongoose')
const Schema = mongoose.Schema

const JurisdictionSchema = Schema({
    id:{
        type:Number
    },
    root:{
        type:String,
        required:true
    },
    routes:{
        type:Array
    },
    role_code:{
        type:String,
        required: true
    },
    role_des:{
        type:String,
        required:true
    },
    role_status:{
        type:Number,
        default:1
    }
},{versionKey:false})

module.exports = mongoose.model('group',JurisdictionSchema)
